package cn.wb.system.mapper;

import cn.wb.org.vo.EmpAndRoleVo;
import cn.wb.system.domain.Role;
import cn.wb.base.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2023-01-03
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addMiddle(@Param("empId") Long empId,@Param("roles") List<Long> roles);

    void deleteByEmpId(Long empId);

    List<EmpAndRoleVo> findByEmpids(List<Long> empIdList);
}
